package navigation

import (
	"log"
	"time"
)

type Point struct {
	X int
	Y int
}

type Navigation func(start Point, end Point) []Point

func DoNavigation(f Navigation, start, end Point) []Point {
	log.Println("... 导航初始化")
	time.Sleep(time.Second * 2)
	log.Println("... 测试GPS模块")
	time.Sleep(time.Second * 2)

	return f(start, end)
}
